while getopts ":s:t:" opt
do
    case $opt in
        s)
        sourcep=$OPTARG
        ;;
        t)
        targetp=$OPTARG
        ;;
        ?)
        exit 1;;
    esac
done
sshpass -f password pssh -h host -O "StrictHostKeyChecking=no" -A -l yapai -i "mkdir -p $targetp" >/dev/null 2>&1
pid=$(ps -ef | grep -E "pscp\s+-h\shost" | grep -E "$sourcep\s+$targetp") 
if [[ -z $pid ]]
then
  echo "upload ... .. . "
  nohup sshpass -f password pscp -h host -O "StrictHostKeyChecking=no" -A -l yapai -v -e res  $sourcep $targetp >/dev/null 2>&1 &
fi
echo 111
sh process.sh -s $sourcep -t $targetp
